<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	  <title>{$seo_title}</title>
	  <link href="{STATIC_URL}css/yzm-common.css" rel="stylesheet" type="text/css" />
	  <link href="{STATIC_URL}css/yzm-style.css" rel="stylesheet" type="text/css" />
	  <script type="text/javascript" src="{STATIC_URL}js/jquery-1.8.2.min.js"></script>
	  <script type="text/javascript" src="{STATIC_URL}js/yzm-front.js"></script>
	  <script type="text/javascript" src="{STATIC_URL}js/jquery.qqFace.js"></script>
	  <meta name="keywords" content="{$keywords}" />
	  <meta name="description" content="{$description}" />
  </head>
  <body>
	     {m:include "index","header"} 
		 <div class="yzm-content-box box">
	 		<div class="yzm-title">
	 			<h2>评论详情</h2>
	 			<span class="yzm-title-right">
	 				当前位置：<a href="{SITE_URL}">首页</a>&gt; <a href="{$content_data[url]}">{$content_data[title]}</a> &gt; 评论详情
	 			</span>
	 		</div>
	 		<div class="yzm-comment-more">
	 			<h1><a href="{$content_data[url]}">{$content_data[title]}</a></h1>
	 			<div class="yzm-comment-more-box">
	 				<div class="yzm-comment-list-top">共{$total}条评论已通过审核<span class="yzm-comment-explain">(以下网友评论只代表网友个人观点，不代表本站观点)</span></div>
	 				<div class="yzm-comment-list-body">
	 				<ul>
	 					{loop $comment_data $v}
	 					<li>
	 						<a class="user_pic" href="{U('member/myhome/init', array('userid'=>$v['userid']))}" target="blank"><img src="{if !empty($v['userpic'])}{$v[userpic]}{else}{STATIC_URL}images/default.gif{/if}" height="35" width="35"></a>
	 						<div class="yzm-comm-right">
	 							<a class="user_name" href="{U('member/myhome/init', array('userid'=>$v['userid']))}" target="blank">{$v[username]}</a>
	 							<p>{nl2br($v['content'])}</p>
	 							<p><span class="comm_time">{date('Y-m-d H:i:s',$v['inputtime'])}</span> <a href="javascript:toreply('{$v[id]}');" class="comm_a">回复</a></p>
	 							<div id="rep_{$v[id]}" class="none">
	 							<form action="{U('comment/index/init')}" method="post"  onsubmit="return check_rep(this)">
	 							<input type="hidden" name="modelid" value="{$modelid}">
	 							<input type="hidden" name="catid" value="{$content_data[catid]}">
	 							<input type="hidden" name="id" value="{$id}">
	 							<input type="hidden" name="title" value="{$content_data[title]}">
	 							<input type="hidden" name="url" value="{$content_data[url]}">
	 							<input type="hidden" name="reply" value="{$v[id]}">
	 							<input type="hidden" name="reply_to" value="{$v[username]}">
	 							<textarea name="content" class="textarea textarea2" placeholder="我来说两句~"></textarea>
	 							<input type="submit" class="yzm-comment-submit static" name="dosubmit" value="提交">
	 							</form>
	 							</div>
	 						</div>
	 					</li>
	 					{/loop}
	 					{if empty($comment_data)}<li>这篇文章还没有收到评论，赶紧来抢沙发吧~</li>{/if}
	 				</ul>
	 				</div>

	 				<div id="page">
	 					{$pages}
	 				</div>

	 				<div class="yzm-title">
	 					<h2>我要来说两句</h2>
	 				</div>
	 				<div class="yzm-comment-box">
	 					<div class="yzm-comment-form">
	 					<form action="{U('comment/index/init')}" method="post"  onsubmit="return check_comm(this)">
	 					<input type="hidden" name="modelid" value="{$modelid}">
	 					<input type="hidden" name="catid" value="{$content_data[catid]}">
	 					<input type="hidden" name="id" value="{$id}">
	 					<input type="hidden" name="title" value="{$content_data[title]}">
	 					<input type="hidden" name="url" value="{$content_data[url]}">
	 					<textarea class="textarea" id="content" name="content" placeholder="我来说两句~"></textarea>
	 					<p><input type="submit" class="yzm-comment-submit" name="dosubmit" value="提交"><span class="emotion">表情</span></p>
	 					</form>
	 					</div>
	 				</div>
	 			</div>
	 		</div>
		 </div>
		 <script type="text/javascript">
			$(function(){
				// 评论框表情
				$('.emotion').qqFace({
					path:'{STATIC_URL}images/face/'	
				});
			});
		 </script>		  	
 		{m:include "index","footer"} 